package main

import (
	_ "github.com/mattn/go-sqlite3"
	"porm/log"
)

func main() {
	engine, _ := NewEngine("sqlite3", "gee.db")
	defer engine.Close()
	s := engine.NewSession()

	s.Model(&User{})
	_ = s.DropTable()
	_ = s.CreateTable()
	if !s.HasTable() {
		log.Error("failed to create table")
	}
}


type User struct {
	Name string `geeorm:"PRIMARY KEY"`
	Age  int
}